<?php
class delAction extends rareAction{
	public function execute(){}
	public function executeGet(){
		$id = $this->getGetParam('id',0);
		if($id==0) jsonReturn(0,'错误的参数');
		$pageDao = new DaoPage();
		$pageDao->del("id='$id'");
		jsonReturn(1,'ok');
	}
    public function executePost(){
        
        $ids = trim($this->getPostParam('id',''),',');
		if($ids=='') jsonReturn(0,'错误的参数');
		
		$dao = new DaoPage();
		foreach(explode(',',$ids) as $id){
			$dao->del("id = '$id'");	
		}
		jsonReturn(1,'ok');
        
    }
}
?>

